from django.db import models
from datetime import datetime
from teams.models import Team
from django.db.models.fields import CharField, IntegerField, TextField

# Create your models here.
class Story(models.Model):
    story_id = models.CharField(max_length=100)
    story_title = models.CharField(max_length=200)
    photo = models.ImageField(upload_to='photos/%Y/%m/%d/')
    summary = models.TextField(blank=True)
    description = models.TextField(blank=True)
    story_published_date = models.DateTimeField(default=datetime.now, blank=True)

    def __str__(self):
            return self.story_title